package com.hjn.base.service.impl;

import com.hjn.base.dao.UserDao;
import com.hjn.base.entity.UserEntity;
import com.hjn.base.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {

  @Autowired private UserDao userDao;

  @Override
  public int saveUser(UserEntity user) {
    return userDao.saveUser(user);
  }

  @Override
  public List<UserEntity> queryAllUser() {
    return userDao.queryAllUser();
  }
}
